#include"lib.h"



LPWSTR WINDOWCLASS = L"1112243_MyTotalCommander";
LPWSTR TITLE = L"My Total Commander";


int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
	

    TOTALCMD win;

	UNREFERENCED_PARAMETER(hInstance);
	UNREFERENCED_PARAMETER(hPrevInstance);


	win.MyRegisterClass(WINDOWCLASS, hInstance);

	if (!win.InitInstance(WINDOWCLASS, TITLE, 200, 30, 900, 650, NULL, hInstance, nCmdShow))
    {
        return 0;
    }

    HACCEL hAccel = LoadAccelerators(hInstance, MAKEINTRESOURCE(IDR_ACCEL1));

    ShowWindow(win.Window(), nCmdShow);
	UpdateWindow(win.Window());
    // Run the message loop.

    MSG msg;
    while (GetMessage(&msg, NULL, 0, 0))
    {
        if (!TranslateAccelerator(win.Window(), hAccel, &msg))
        {
            TranslateMessage(&msg);
            DispatchMessage(&msg);
        }
    }
    return 0;
}
